@extends('layout.master')
@section('title', '后台管理系统')
@section('content')
<body class="easyui-layout">
<div class="box">
    <form id="form">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td style="width: 10%"><span style="color: red">*</span>用户名:</td>
            <td style="width: 90%"><input type="text" class="mg_code" name="mg_code" value="{{$info->mg_code}}"></td>
        </tr>
        <tr>
            <td><span style="color: red">*</span>真实姓名:</td>
            <td><input type="text" class="mg_code" name="mg_name" value="{{$info->mg_name}}"></td>
        </tr>
        <tr>
            <td><span style="color: red">*</span>当前所属角色:</td>
            <td>
                <ul>
                @foreach ($roles as $r)
                   <li><input type="checkbox"  name="rids[]" @if (in_array($r->role_id, $have)) checked="checked"  @endif value="{{$r->role_id}}">{{$r->role_name}}</li>
                @endforeach
                </ul>
            </td>
        </tr>
        <tr>
            <td>操作:</td>
            <td>
                <input type="hidden" value="{{$info->mg_id}}" name="mg_id">
                <input type="button" class="easyui-linkbutton" onclick="$api.update_role()" data-options="iconCls:'icon-save'" value="提交" style="width:80px;height: 32px;">
            </td>
        </tr>
    </table>
    </form>
</div>
<link rel="stylesheet" href="{{URL::asset('css/table.css')}}">
</body>
@endsection
